﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Utilities;
namespace Models.WebSite_HaiSheng
{
    public class Message:EntityBase
    {
        [Display(Name = "留言主题"), Required]
        public string Title { get; set; }

        [Display(Name = "留言内容"), Required]
        public string Content { get; set; }

        [Display(Name = "留言时间")]
        public DateTime ContentDate { get; set; }

        [Display(Name = "留言回复")]
        public string Reply { get; set; }

        [Display(Name = "回复时间")]
        public DateTime ReplyDate { get; set; }

        [Display(Name = "留言人"), Required]
        public string Sender { get; set; }

        [Display(Name = "电话"), Required]
        public string Contact { get; set; }

        [Display(Name = "是否已处理")]
        public bool IsClosed
        {
            get { return string.IsNullOrEmpty(Content) ? false : true; }
        }
    
    }
}